package com.pet.shop.controller.room;

import com.pet.shop.controller.BaseController;
import com.pet.shop.entity.room.Hotel;
import com.pet.shop.entity.room.Room;
import com.pet.shop.service.IBaseService;
import com.pet.shop.service.room.IHotelService;
import com.pet.shop.service.room.IRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/web/room")
public class RoomController extends BaseController<Room>{

    @Autowired
    private IRoomService roomService;

    @Override
    public IBaseService<Room> getBaseService() {
        return roomService;
    }

    @RequestMapping("list")
    public ModelAndView list(){
        return new ModelAndView("room/roomList");
    }
}
